package com.biz.primus.ms.geo.dao.po;

import com.biz.primus.ms.base.jpa.converter.ListIntegerConverter;
import lombok.Data;

import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.util.List;

/**
 * @author JKLiues
 * @date 2017/11/8
 */
@Data
@Entity
@Table(name = "geo_region", indexes = {@Index(columnList = "status")})
public class Region extends AbstractAreaWithCode {

    @Convert(converter = ListIntegerConverter.class)
    private List<Integer> provinces;

}
